import request from "@/utils/request"

export const getOperationsPageApi = (page,pageSize,jobCode)=>request.get(`/warehouse_operations?page=${page}&pageSize=${pageSize}&jobCode=${jobCode}`)

export const addOperationsApi = (data)=>request.post('/warehouse_operations',data)

export const confirmOperationsApi = (id)=>request.put(`/warehouse_operations/confirm/${id}`)

export const changeOperationsApi = (id)=>request.put(`/warehouse_operations/change/${id}`)

export const deleteOperationsApi = (id)=>request.delete(`/warehouse_operations/${id}`)

export const getOperationsDetailApi = (id)=>request.get(`/warehouse_operations/${id}`)
